package tp.pr3.items;

import tp.pr3.Player;
import tp.pr3.Room;

public abstract class Item
{

	protected String id;
	protected String description;
	protected String toStringString;

	protected Item(String id,String description)
	{
		this.id = id;
		this.description = description;
		StringBuilder sb = new StringBuilder();
		sb.append("--item[");
		sb.append(this.id);
		sb.append("]=");
		sb.append(this.description);
		toStringString = sb.toString();

	}

	public java.lang.String getId()
	{
		return this.id;
	}

	public String toString()
	{

		return toStringString;
	}

	public abstract boolean canBeUsed();

	public abstract boolean use(Player who, Room where);
}
